home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000215_news@newsmaster….columbia.edu _Mon May 19 09:47:41 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA27718
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 19 May 1997 09:47:41 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA20884
  7.     for kermit.misc@watsun; Mon, 19 May 1997 09:47:41 -0400 (EDT)
  8. Path: news.columbia.edu!panix!news.eecs.umich.edu!news.mathworks.com!howland.erols.net!newsfeed.internetmci.com!news.wwa.com!not-for-mail
  9. From: Jim Jacobus <jjacobus@wwa.com>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Script Input Error
  12. Date: Mon, 19 May 1997 08:46:40 -0500
  13. Organization: PonyXPress Horse Transport
  14. Lines: 47
  15. Message-ID: <338059C0.409B@wwa.com>
  16. References: <337DC0C3.5D6B@wwa.com> <5lkfi2$48t$1@newsmaster.cc.columbia.edu> <Oohfz4qd5rpS089yn@xmission.com> <337F4817.6DC2@wwa.com> <5lnmd4$sui$1@newsmaster.cc.columbia.edu>
  17. NNTP-Posting-Host: pool7-050.wwa.com
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Mailer: Mozilla 3.01 (Win95; I)
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7053
  23.  
  24. Frank da Cruz wrote:
  25. > In article <337F4817.6DC2@wwa.com>, Jim Jacobus  <jjacobus@wwa.com> wrote:
  26. > : Jim Janney wrote:
  27. > : > In article <337DC0C3.5D6B@wwa.com>, Jim Jacobus  <jjacobus@wwa.com> wrote:
  28. > : > > I'm trying to write a telnet script using VMS C-kermit 6.0.192 to
  29. > : > > connect to ...
  30. > : > > I can't get a response back from my script. I have an
  31. > : > > "input 5 login:" which should work, but I always get an error from
  32. > : > > my VMS Kermit:
  33. > : > > ? Can't condition line for INPUT
  34. > : > ...
  35. > : > When I changed this to
  36. > : >
  37. > : >    set network tcp/ip
  38. > : >    set host bix.com
  39. > : >    input 5 login
  40. > : >
  41. > : > it started to work as I had intended.
  42. > :
  43. > : ohmygosh! That worked. Thanks. -- Jim
  44. > :
  45. > Right.  TELNET xxx means (roughly) "set network tcp/ip, set host xxx, if
  46. > success connect".  In other words, TELNET at the Kermit prompt does roughly
  47. > what "telnet" at the system prompt would do.
  48. > But scripts do not execute while in CONNECT mode.  CONNECT (or TELNET) is
  49. > just another command in the script; the next command is executed after
  50. > Kermit reterns from CONNECT mode.  Of course this is documented in the
  51. > manual, which also shows numerous examples of how to write scripts for
  52. > Telnet connections, using SET HOST.
  53. > If your script looked like this:
  54. >   telnet blah
  55. >   input 10 login:
  56. > then probably what happened is you got the interactive terminal screen,
  57. > saw the login prompt, and then logged out or disconnected.  At this point
  58. > Kermit returns to its command processor and executes the INPUT command,
  59. > but at this point the connection has been closed, and hence the message:
  60. >   ?Can't condition line for INPUT
  61. > - Frank
  62.  
  63. Thanks for clearing that up. That was my error. -- Jim